package com.lovegu.basic;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 老顾
 * @title: User
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/11/14 22:37
 */
public class User {
    private String id;
    private String name;
    private String phone;
    private String address;
    //忽略getters和setters

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public static void main(String[] args) {
        User u1 = new User();
        u1.setId("1111111");
        u1.setName("name1");
        u1.setAddress("add1");
        u1.setPhone("pn111");

        User u2 = new User();
        u2.setId("1111111");
        u2.setName("name1");
        u2.setAddress("add1");
        u2.setPhone("pn111");

        User u3 = new User();
        u3.setId("1111111");
        u3.setName("name1");
        u3.setAddress("add1");
        u3.setPhone("pn111");

        List<User> users = new ArrayList<User>();
        users.add(u1);
        users.add(u2);
        System.out.println(users);
    }
}

